package service

import (
	"api-gateway-center/domain/register/model"
	"api-gateway-center/domain/register/repository"
)

// 接口注册服务
type RegisterManageService struct {
	repository repository.RegisterManageRepository
}

func NewRegisterManageService(repository repository.RegisterManageRepository) *RegisterManageService {
	return &RegisterManageService{
		repository: repository,
	}
}

// RegisterApplication
//
//	@Description: 注册应用信息
//	@receiver this
//	@param applicationSystemVO
//	@return error
func (this *RegisterManageService) RegisterApplication(applicationSystemVO model.ApplicationSystemVO) error {
	return this.repository.RegisterApplication(applicationSystemVO)
}
func (this *RegisterManageService) RegisterApplicationInterfacer(applicationInterfaceVO model.ApplicationInterfaceVO) error {
	return this.repository.RegisterApplicationInterface(applicationInterfaceVO)
}
func (this *RegisterManageService) RegisterApplicationInterfaceMethod(applicationInterfaceMethodVO model.ApplicationInterfaceMethodVO) error {
	return this.repository.RegisterApplicationInterfaceMethod(applicationInterfaceMethodVO)
}
